<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">

<head>
	<!--加载header文件-->
	<?php
	include_once 'public/views/header.php';
	?>
	<?php
	include_once 'public/home/html/faltSelect.php';
	include_once 'public/home/html/laydate.php';
	include_once 'public/home/html/upload.php';
	include_once 'public/home/html/onoff.php'
	?>
	<link rel="stylesheet" href="public/css/edit.css" />
	<script src="cust/js/goodsUpload.js"></script>
	<script src="public/js/cus_modal.js"></script>
	<style type="text/css">
		body{
			background: white
		}
		.timeline-container{
			width: 90%
		}
	</style>
</head>

<body>
	<div class="timeline-container">
		<?php foreach ($audit as $k => $v): ?>
				<?php if($v['state']==AuditState::Pass[XPHEnum::Value]): ?>
					<div class="timeline-label"></div>
					<div class="timeline-items">
						<div class="timeline-item clearfix">
							<div class="timeline-info">
								<i class="timeline-indicator ace-icon icon-ok btn btn-success no-hover green"></i>
							</div>

							<div class="widget-box transparent">
								<div class="widget-header widget-header-small">
									<h5 class="widget-title smaller"><?=AuditState::Pass[XPHEnum::Caption]?></h5>
								</div>

								<div class="widget-body">
									<div class="widget-main">
										审核人：<?=$v['operator_name'];?><br>
												审核节点：<?=$v['node_char'];?><br>
												审核时间：<?=$v['audit_time_char'];?>
										<div class="widget-toolbox clearfix">
											<div class="pull-right action-buttons">
												<div class="space-4"></div>
												提交人：<?=$v['submit_name'];?><br>
												提交时间：<?=$v['created_char'];?>
											</div>
										</div>
									</div>
								</div>

							</div>
						</div>
					</div><!-- /.timeline-items -->
				<?php endif ?>
				<?php if($v['state']==AuditState::Refused[XPHEnum::Value]): ?>
					<div class="timeline-label"></div>
					<div class="timeline-items">
						<div class="timeline-item clearfix">
							<div class="timeline-info">
								<i class="timeline-indicator ace-icon fa icon-remove btn btn-danger no-hover green"></i>
							</div>

							<div class="widget-box transparent">
								<div class="widget-header widget-header-small">
									<h5 class="widget-title smaller"><?=AuditState::Refused[XPHEnum::Caption]?></h5>
								</div>

								<div class="widget-body">
									<div class="widget-main">
										拒绝的原因：<?=$v['remark'];?><br>
												审核人：<?=$v['operator_name'];?><br>
												审核节点：<?=$v['node_char'];?><br>
												审核时间：<?=$v['audit_time_char'];?>
										<div class="widget-toolbox clearfix">
											<div class="pull-right action-buttons">
												<div class="space-4"></div>
												提交人：<?=$v['submit_name'];?><br>
												提交时间：<?=$v['created_char'];?>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				<?php endif ?>
				<?php if($v['state']==AuditState::UnAudit[XPHEnum::Value]): ?>
						<div class="timeline-items">
							<div class="timeline-item clearfix">
								<div class="timeline-info">
									<i class="timeline-indicator ace-icon fa icon-time btn btn-primary no-hover green"></i>
								</div>

								<div class="widget-box transparent">
									<div class="widget-header widget-header-small">
										<h5 class="widget-title smaller"><?=AuditState::UnAudit[XPHEnum::Caption]?></h5>
									</div>

									<div class="widget-body">
										<div class="widget-main">
											审核节点：<?=$v['node_char'];?><br>
											<div class="widget-toolbox clearfix">
												<div class="pull-right action-buttons">
													<div class="space-4"></div>
													提交人：<?=$v['submit_name'];?><br>
													提交时间：<?=$v['created_char'];?>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div><!-- /.timeline-items -->
				<?php endif ?>
				
		<?php endforeach ?>
</body>


</html>